<template>
	<view class="phb">
		<div class="biaoti">排行榜</div>
		
			<scroll-view class="all" :scroll-y="true">
				 <view v-for="(item,index) in wanjia">
			        <view class="dange">
						<view class="paiming">{{index+1}}</view>
						<image class="touxiang"  src="@/static/logo.png"></image>
						<view class="zhang">{{item.zhang}}</view>
						<view class="shengchang">{{item.shengchang}}</view>
					</view>
		         </view>
			</scroll-view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				wanjia:[]
			}
		},
		created() {
			uni.request({
				url:"http://124.221.104.5:8080/jbgn/paihangbang",
				 success: (res) => {
				 	this.wanjia=res.data
				 }
			})
		}
		
	}
</script>

<style>
	.phb{
		width: 420rpx;
	    height: 320rpx;
	   background-color: antiquewhite;
	   position: absolute;
	   left: 50%;
	  top: 50%;
	   transform: translate(-50%,-50%);
	}
	.biaoti{
		height: 50rpx;
	}
	.all{
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 50rpx;
		height: 220rpx;
	}
	.dange{
		width: 418rpx;
		height: 50rpx;
		border: 1rpx solid black;
		display: flex;
		flex-direction: row;
		align-items: center;
		
	}
	.paiming{
		margin-left: 10rpx;
		font-size: 20rpx;
	}
	.touxiang{
		width:40rpx ;
		height: 40rpx;
		border-radius: 100%;
		margin-left: 40rpx;
	}
	.zhang{
		margin-left: 20rpx;
		font-size: 20rpx;
		width: 70rpx;
	}
	.shengchang{
		margin-left: 130rpx;
		font-size: 20rpx;
	}
	
</style>
